﻿using Top.Api;
using System;

namespace Taoke.Core
{
    /// <summary>
    ///TOPHelper 的摘要说明
    /// </summary>
    public class TOPHelper
    {
        public TOPHelper()
        {
            //
            //TODO: 在此处添加构造函数逻辑
            //
        }
        /// <summary>
        /// 我的淘宝昵称
        /// </summary>
        public static readonly string Nick = "shirx2008";
        /// <summary>
        /// 类别_女装
        /// </summary>
        public static readonly long Categry_Women = 16;
        /// <summary>
        /// 类别_男装
        /// </summary>
        public static readonly long Categry_Men = 30;
        /// <summary>
        /// 起始佣金比率(推广商品搜索条件)
        /// </summary>
        public static readonly string StartCommissionRate = "500";
        /// <summary>
        /// 最高佣金比率(推广商品搜索条件)
        /// </summary>
        public static readonly string EndCommissionRate = "5000";
        /// <summary>
        /// 最低卖家信用(推广商品搜索条件)
        /// </summary>
        public static readonly string StartCredit = "5heart";
        /// <summary>
        /// 最高卖家信用(推广商品搜索条件)
        /// </summary>
        public static readonly string EndCredit = "5goldencrown";
        /// <summary>
        /// 成交量成高到低代码
        /// </summary>
        public static readonly string CommissionNum_Desc = "commissionNum_desc";
        /// <summary>
        /// 信用等级从高到低代码
        /// </summary>
        public static readonly string Credit_Desc = "credit_desc";
        /// <summary>
        /// 商品单页大小
        /// </summary>
        public static readonly int PageSize = 15;

        /*沙箱环境*/
        public static readonly string TestServerUrl = "http://gw.api.tbsandbox.com/router/rest";
        public static readonly string TestAppKey = "12193503";
        public static readonly string TestAppSecret = "sandbox68dd63c358081c21fc1484213";
        /*正式环境*/
        public static readonly string ServerUrl = "http://gw.api.taobao.com/router/rest";
        public static readonly string AppKey = "21478541";//12209184//12202778
        public static readonly string AppSecret = "8e3ef88076dc004555e2ef964e779393";//ffff172d19666dd95917e2a6d5ead4b1//113da0cabf3f46efaba97574aebfd6b7
        public static readonly string SessionKey = "";//"409201318a05cb0c1f077TjNgcsE8d3df8c1f0d98d6693f1640460071";

        public static readonly ITopClient Client = new DefaultTopClient(ServerUrl, AppKey, AppSecret);
    }
}
